package com.suyang.syt.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "WX_GROUP")
public class WeixinGroup {
	/** 序号 */
	private int wxid;

	/** 分组id，由微信分配 */
	private int id;

	/** 分组名字，UTF8编码 */
	private String name;

	/** 分组内用户数量 */
	private int count;

	public WeixinGroup() {

	}

	public WeixinGroup(int id) {
		this.id = id;
	}

	public WeixinGroup(String name) {
		this.name = name;
	}

	public WeixinGroup(int id, String name) {
		this.id = id;
		this.name = name;
	}

	@Id
	@GeneratedValue
	public int getWxid() {
		return wxid;
	}

	public void setWxid(int wxid) {
		this.wxid = wxid;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column(name = "groupCount")
	public int getCount() {
		return count;
	}

	public void setCount(int count) {
		this.count = count;
	}

}
